package com.neulogistics.contrib.warehouse.api.application.validator.annotation;


import com.neulogistics.contrib.warehouse.api.application.validator.InListValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = InListValidator.class)
public @interface InList {
    String message() default "非法的状态参数！";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};

    int[] values();
}